package edu.yctc.patterns.builder;

import java.util.Date;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

/**
 * @className UserDO
 * @description 使用lombok实例化的UserDO
 * @Builder-表示按Builder方式初始化
 * @AllArgsConstructor-表示自动生成全参构造器, 接受等级为private
 * @Getter-表示自动生成Getter方法
 * @author zyj
 * @date 2019年12月15日
 *
 */
@Builder
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@ToString(exclude = {"createTime", "modifyTime"})
@Getter
public class UserDO {

    private final long id;

    /** 用户标识, 见{@link edu.yctc.patterns.constant.entity.tag.UserTag} */
    private final int tag;

    private final String account;

    private final String password;

    private final Date createTime;

    private final Date modifyTime;

}
